<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="Header.jsp" />
<title>Leave Types </title>
</head>
<body>
	<jsp:include page="AdminNav.jsp" />
	<script>
		$(document).ready(function() {
			oTable = $('#example').dataTable({
				"bJQueryUI" : true,
				"sPaginationType" : "full_numbers"
			});
		});
	</script>
	<h2>Leave Types</h2>
	<div class="col-md-10 panel panel-success">
		<table id="example" style="text-align: center;"
			class="table table-hover">
			<thead>
				<tr>
					
					<td><b>Leave Type Name</b></td>
					<td><b>Allowed Days</b></td>
					<td><b>Edit</b></td>
			</thead>
			<tbody>
				<c:forEach var="leavetype" items="${leaveTypelist}">
					<tr>
						
						<td>${leavetype.name}</td>
						<td>${leavetype.allowedDays}</td>

						<td><a
							href="${pageContext.request.contextPath}/LeaveType/edit/${leavetype.leaveTypeId}.html">Edit</a><br />

						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	<jsp:include page="footer.jsp" />

</body>
</html>